package serveur;

import java.rmi.RemoteException;
import java.rmi.registry.LocateRegistry;
import java.rmi.registry.Registry;

import javax.rmi.ssl.SslRMIClientSocketFactory;

import remote.PublicInterface;

/**
 * Code devant lancer le serveur, initialiser le RMIRegistry etc...
 *
 */
public class Main {

	public static void main(String[] args) throws RemoteException {
		PublicInterface publicServer = new PublicServer();
		Registry reg=LocateRegistry.createRegistry(2002);
		reg.rebind("PublicAccess", publicServer);
	}
}
